//
//  UINavigationComponent.h
//  HybirdPrj
//
//  Created by xiangying on 15/7/3.
//  Copyright (c) 2015年 Elephant. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UINavigationController(UINavigationComponent)<UIGestureRecognizerDelegate,UINavigationControllerDelegate>

@property(nonatomic,strong)UIPanGestureRecognizer *customGesture;
@property(nonatomic,strong)NSMutableArray         *delayControllers;

@property(nonatomic,strong,class)NSMutableArray *gestureIgonre;
@property(nonatomic,strong)NSMutableArray *gestureIgonre;

- (void)addIgnoreGesture:(Class)aClass;
+ (void)addIgnoreGesture:(Class)aClass;
- (void)removeIgnoreGesture:(Class)aClass;
+ (void)removeIgnoreGesture:(Class)aClass;

- (UIPanGestureRecognizer*)currentPopgesture;

- (void)popGesture:(BOOL)gesture;

+ (void)setFullPopGestureEnabled:(BOOL)enabled;

+ (void)setFullPopGestureDisabled:(BOOL)disabled;

//defalut true
+ (BOOL)fullPopGestureEnabled;

//
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated completion:(void(^)(void))completion;

// 自定义动画
//- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated completion:(void (^)(void))completion animatorManager:(NBTransitionManager *)animatorManager;

- (void)setViewControllers:(NSArray<UIViewController *> *)viewControllers animated:(BOOL)animated completion:(void(^)(void))completion;

- (NSArray<__kindof UIViewController *> *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated completion:(void(^)(void))completion;

- (UIViewController *)popViewControllerAnimated:(BOOL)animated completion:(void(^)(void))completion;

-(void)push:(UIViewController *)viewController andclose:(UIViewController*)closevc animated:(BOOL)animated completion:(void(^)(void))completion;

@end
